Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sql cli sourcing of x-pack-env #52613

Merged
merged 1 commit into from
Feb 24, 2020
Merged

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Feb 21, 2020

The sql-cli script sources x-pack-env, but it does so assuming the
current directory is ES_HOME. This commit alters the source command to
use ES_HOME which is available after running elasticsearch-env.

closes #47803

The sql-cli script sources x-pack-env, but it does so assuming the
current directory is ES_HOME. This commit alters the source command to
use ES_HOME which is available after running elasticsearch-env.

closes elastic#47803
@rjernst rjernst added >bug :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts v8.0.0 v7.7.0 labels Feb 21, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Packaging)

@rjernst rjernst requested a review from bpintea February 21, 2020 01:48
@rjernst
Copy link
Member Author

rjernst commented Feb 21, 2020

@bpintea Note that this should fix the cli when using within an Elasticsearch installation, but the docs mention the script can be copied to another host, while in actually there would be several files necessary to do so. I leave that as a separate issue to fix either in this script and/or in the docs.

Copy link
Contributor

@bpintea bpintea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@astefan astefan added the :Analytics/SQL SQL querying label Feb 24, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (:Search/SQL)

@bpintea
Copy link
Contributor

bpintea commented Feb 24, 2020

Thanks, @rjernst!

the docs mention the script can be copied to another host, while in actually there would be several files necessary to do so.

@astefan added some clarifications on this in #52626. Hope that's enough, but let us know please if you think otherwise.

@rjernst rjernst merged commit 93732bc into elastic:master Feb 24, 2020
@rjernst rjernst deleted the sql_cli_fix branch February 24, 2020 19:13
rjernst added a commit that referenced this pull request Feb 24, 2020
The sql-cli script sources x-pack-env, but it does so assuming the
current directory is ES_HOME. This commit alters the source command to
use ES_HOME which is available after running elasticsearch-env.

closes #47803
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/SQL SQL querying >bug :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts Team:Delivery Meta label for Delivery team v7.7.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect source in elasticsearch-sql-cli
7 participants